package com.cn.front.feign;

import com.cn.common.pojo.ResultModel;
import com.cn.front.feign.fallBack.TopAndFootFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.GetMapping;

@Primary
@FeignClient(value = "topAndFoot",path = "aaa",fallback = TopAndFootFallBack.class)
public interface TopAndFootFeign {
    @GetMapping("bbb")
    ResultModel top();
    @GetMapping("foot")
    ResultModel company();

    }
